//
//  StoryInfoResponse.swift
//  App
//
//  Created by 汤泽川 on 2019/4/20.
//

import Foundation
import Vapor
struct StoryInfoResponse : Content {
    var storyInfo : StoryInfo
    var authorInfo : UserInfo
    var collectionCount : Int
    var commentCount : Int
    var createdAt : Date
    init(storyInfo : StoryInfo, author : UserInfo, collectionCount : Int, commentCount : Int) {
        self.storyInfo = storyInfo
        self.authorInfo = author
        self.collectionCount = collectionCount
        self.commentCount = commentCount
        self.createdAt = storyInfo.createdAt!
    }
}

struct QueryCollectionStoryStateResponse : Content {
    var  state : Int
}
